In [1]:
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
sns.set(color_codes=True)
%matplotlib inline
In [2]:
df = pd.read_csv('iris.data')
In [3]:
df.head()
Out[3]:
In [4]:
df = pd.read_csv('iris.data', header=-1)
df.head()
Out[4]:
In [5]:
col_name = ['sepal length', 'sepal width', 'petal length', 'petal width', 'class']
In [6]:
df.columns = col_name
In [7]:
df.head()
Out[7]:
In [8]:
iris = sns.load_dataset('iris')
iris.head()
Out[8]:
In [9]:
df.describe()
Out[9]:
In [10]:
iris.describe()
Out[10]:
In [11]:
print(iris.info())
In [12]:
print(iris.groupby('species').size())
In [ ]: